<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>04-iframe-同源通信-子页面</title>
  </head>
  <body>
    <h2>子页面</h2>
    <p id="msg">好好学习</p>
    <script>
      // 获取父页面window对象
      // const parent = window.parent;
      // console.log(parent.aaa);
      window.aaa = "子页面数据";
    </script>
  </body>
</html>
